﻿namespace LS.Nc6.Core
{
    public class EntityBase
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(IsIdentity = true, ColumnDescription = "Id主键", IsPrimaryKey = true)] //通过特性设置主键和自增列 
        public long Id { get; set; }
    }

    public class EntityBaseDel : EntityBase
    {
        /// <summary>
        /// 是否删除 0=否 1=是
        /// </summary>
        public int IsDeleted { get; set; }

    }

    public class EntityBaseDate : EntityBase
    {
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 创建日人
        /// </summary>
        public string CreateBy { get; set; }
    }
    public class EntityBaseDateDel : EntityBaseDate
    {
        /// <summary>
        /// 是否删除 0=否 1=是
        /// </summary>
        public int IsDeleted { get; set; }
    }

    public class EntityBaseUpdateDate : EntityBase
    {
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? UpdateDate { get; set; }

        /// <summary>
        /// 创建日人
        /// </summary>
        public string CreateBy { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdateBy { get; set; }
    }

    public class EntityBaseUpdateDateDel : EntityBaseUpdateDate
    {
        /// <summary>
        /// 是否删除 0=否 1=是
        /// </summary>
        public int IsDeleted { get; set; }
    }
}
